// 自动生成模板QmPlatforms
package qingma

import (
	"qm_system_server/server/global"
)

// qmPlatforms表 结构体  QmPlatforms
type QmPlatforms struct {
	global.GVA_MODEL
	Appid      string  `json:"appid" form:"appid" gorm:"column:appid;comment:游戏appid;size:191;"binding:"required"`               //游戏appid
	PlatformId int64   `json:"platform_id" form:"platform_id" gorm:"column:platform_id;comment:平台id;size:10;"binding:"required"` //平台id
	GameHash   string  `json:"game_hash" form:"game_hash" gorm:"column:game_hash;comment:;size:255;"binding:"required"`          //gameHash字段
	Secret     string  `json:"secret" form:"secret" gorm:"column:secret;comment:游戏secret;size:191;"binding:"required"`           //游戏secret
	Cookie     string  `json:"cookie" form:"cookie" gorm:"column:cookie;comment:cookie;"`                                        //cookie
	Divide     float64 `json:"divide" form:"divide" gorm:"column:divide;comment:分成比例;"`                                          //分成比例
	OpenidFlag int64   `json:"openid_flag" form:"openid_flag" gorm:"column:openid_flag;comment:设置openid;size:10;"`               //设置openid
	CookieTwo  string  `json:"cookie_two" form:"cookie_two" gorm:"column:cookie_two;comment:cookie_two;"`                        //cookie
}

// TableName qmPlatforms表 QmPlatforms自定义表名 qm_platforms
func (QmPlatforms) TableName() string {
	return "qm_platforms"
}
